package com.shang.activity.controller;

import com.shang.activity.domain.Activity;
import com.shang.activity.domain.vo.ActivityReq;
import com.shang.activity.service.ActivityService;
import com.shang.common.core.domain.R;
import com.shang.common.core.web.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 部门信息
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/dept")
public class ActivityController extends BaseController
{
    @Autowired
    private ActivityService activityService;

    /**
     * 活动列表
     */
    @PostMapping("/list")
    public R list(@RequestBody ActivityReq req)
    {
        List<Activity> list = activityService.list(req);
        return R.ok(list);
    }


}
